<template>
	<view class="padding-lr" style="width: 100%;">
		<view class="flex">
			<view class="flex-sub margin-xs radius">
				<button class="KCARD cu-btn block text-primary lg radius bg-white radius-btn" @tap="handleClick('home')">{{$t('JLink.paySuccess.backToHomepage')}}</button>
			</view>
			<view class="flex-sub margin-xs radius">
				<button class="KCARD cu-btn block  text-primary lg radius bg-white radius-btn" @tap="handleClick('order')">{{$t('JLink.paySuccess.viewOrder')}}</button>
			</view>
		</view>
	</view>
</template>

<script>
  export default {
    methods: {
      handleClick(type) {
        switch (type) {
          case 'home':
            uni.switchTab({
              url: '/jvss/pages/cloud/cloud'
            });
            break;
          case 'order':
            this.$routing(this.$pages.order.list)
            break;
        }
      },
    }
  }
</script>

<style lang="less" scoped>
@import '@/common/style/main.css';
	.KCARD {
		border: 2upx solid #efeded
	}
</style>

